document.ready(function() {
    webSpinner.spin(getItem('loadSpin'));

    setDisplay('loadSpin', 'none');
    setDisplay('mainBg', '');
    webSpinner.spin();
});

function download1() {
    window.open('/api/download/attachment');
    //window.location.href = '/api/download/attachment';
}

function download2() {
    window.open('/api/download/loop');
}